package cn.jiaqiang.chatgpt.data.domain.openai.repository;

import cn.jiaqiang.chatgpt.data.domain.openai.model.entity.UserAccountEntity;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA.
 * Description: openai 仓储接口
 * User: 86187
 * Date: 2024-04-02
 * Time: 16:54
 */
@Repository
public interface IOpenAiRepository {
    /** 查询用户账户信息 */
    UserAccountEntity queryUserAccount(String userId);

    /** 扣减用户账户额度 */
    void subAccountQuota(String userId, String model);
}
